

<template>
<router-view/>


</template>

<script setup>
import { useUserStore } from '@/stores/index'
import {onMounted} from 'vue'
import { RouterLink, RouterView } from 'vue-router'
import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue'
defineOptions({
    name: 'App',
})

const userStore = useUserStore()
onMounted(() => {
    if (localStorage.getItem('user')) {
        userStore.login(JSON.parse(localStorage.getItem('user')))
    }
})

</script>

<style scoped>
</style>